package com.baidu.st.fe.spllot.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Tokens {
	private List<TokenEntry> tokens = new ArrayList<TokenEntry>();

	public void add(TokenEntry tokenEntry) {
		this.tokens.add(tokenEntry);
	}

	public Iterator<TokenEntry> iterator() {
		return tokens.iterator();
	}

	public TokenEntry getTokenEntry(int index) {
		return tokens.get(index);
	}

	public int size() {
		return tokens.size();
	}

	public List<TokenEntry> getTokens() {
		return tokens;
	}

}
